From: Fredrik Eriksson Date: Thu, 2 Jan 2025 13:59:18 +0000 (+0100) Subject: Enable netrc tests X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~157^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=294bb1adb300d7d53f3de27a1bad84fe77781add;p=nextcloud-desktop.git Enable netrc tests Test for spaces in usernames and passwords is disabled for now as it's not supported by current implementation. Signed-off-by: Fredrik Eriksson --- diff --git a/test/testnetrcparser.cpp b/test/testnetrcparser.cpp index f826edd8d..3ab42698d 100644 --- a/test/testnetrcparser.cpp +++ b/test/testnetrcparser.cpp @@ -53,11 +53,11 @@ private slots: void testValidNetrc() { NetrcParser parser(testfileC); - QEXPECT_FAIL("", "test currently broken, eventually will be fixed", Abort); QVERIFY(parser.parse()); QCOMPARE(parser.find("foo"), qMakePair(QString("bar"), QString("baz"))); QCOMPARE(parser.find("broken"), qMakePair(QString("bar2"), QString())); QCOMPARE(parser.find("funnysplit"), qMakePair(QString("bar3"), QString("baz3"))); + QEXPECT_FAIL("", "Current implementation do not support spaces in username or password", Continue); QCOMPARE(parser.find("frob"), qMakePair(QString("user with spaces"), QString("space pwd"))); } @@ -69,7 +69,6 @@ private slots: void testValidNetrcWithDefault() { NetrcParser parser(testfileWithDefaultC); - QEXPECT_FAIL("", "test currently broken, eventually will be fixed", Abort); QVERIFY(parser.parse()); QCOMPARE(parser.find("foo"), qMakePair(QString("bar"), QString("baz"))); QCOMPARE(parser.find("dontknow"), qMakePair(QString("user"), QString("pass")));